home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.pinc.com!usenet
- From: MCOLYNUCK@PIM.BC.CA (Michael Colynuck)
- Newsgroups: comp.lang.c
- Subject: Re: Executing DOS command from C
- Date: Sun, 14 Jan 1996 07:11:27 GMT
- Organization: Pacific InterConnect
- Message-ID: <4dah1i$g7q@nntp.pinc.com>
- References: <4d28di$b7g@globe.indirect.com>
- NNTP-Posting-Host: pinc102.pinc.com
- X-Newsreader: Forte Free Agent v0.55
-
- wayneft@indirect.com wrote:
-
- >I know that this is probably a stupid question, but it's been a while
- >since I have programmed in C. My question is what is the command in a
- >C program that executes a DOS command such as DIR, or COPY. I've
- >looked through all my books and for some reason I just can't seem to
- >find it. I know it is a real simple command that is in the dos.h
- >header file. If someone could email me or post the command I would be
- >very grateful, I need it because I have to something for work.
-
- >wayneft@indirect.com
-
-
- My compiler uses the function: system ("dir");
-
- Michael
-
-